<template>
  <AddProject :id="projectId"></AddProject>
</template>
<script setup name="EditProject">
import { useRoute, useRouter } from 'vue-router'
import AddProject from '@/views/salesManage/projectManage/addProject/index.vue'
const route = useRoute()
let projectId = ref(null)
watch(
  () => route.query.id,
  val => {
    if (route.query.id) {
      projectId.value = route.query.id
    }
  },
  {
    immediate: true
  }
)
</script>
